package com.yxj.threadcase1;

public class MyThread7 extends Thread{
    @Override
    public void run() {
        for(int i = 0; i< 100; i++) {
            System.out.println(getName()+"@"+i);
            //表示出让当前CPU的执行权-让线程尽可能均匀点
            Thread.yield();
        }
    }

}
